﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.events {
    import flash.events.*;
    import net.wooga.pets.loading.vos.*;

    public class RequestEvent extends Event {

        private var _onResult:Function;
        private var _onError:Function;
        private var _groupId:String;
        private var _requests:Array;

        public function RequestEvent(_arg1:String, _arg2:Function=null, _arg3:String=null){
            this._requests = [];
            super(_arg1, false, false);
            this._onResult = _arg2;
            this._groupId = _arg3;
        }
        public function get resultHandler():Function{
            return (this._onResult);
        }
        public function set errorHandler(_arg1:Function):void{
            this._onError = _arg1;
        }
        public function get errorHandler():Function{
            return (this._onError);
        }
        public function get groupId():String{
            return (this._groupId);
        }
        public function addRequestVO(_arg1:RequestVO):void{
            this._requests.push(_arg1);
        }
        public function addRequest(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:String=null, _arg5:String=null):RequestVO{
            var _local6:RequestVO = new RequestVO(_arg1, _arg2, _arg3, _arg4, _arg5);
            this.addRequestVO(_local6);
            return (_local6);
        }
        public function addAssetRequest(_arg1:String, _arg2:String="", _arg3:String=null):void{
			//throw Error("hello");
            this.addRequest(_arg1, {id:_arg2}, true, null, _arg3);
        }
        public function get requests():Array{
            return (this._requests);
        }

    }
}//package net.wooga.pets.events 
